package test3;

/**
 * Test3_33
 */
public class Test3_33 {

  public static void main(String[] args) {
    int a[] = { 1, 2, 3 };
    int b[] = { 1, 2, 4 };
    int c[] = { 1, 2, 4 };
    System.out.println(equals(a, b));
    System.out.println(equals(b, c));
  }

  public static boolean equals(int a[], int b[]) {
    if (a == null || b == null) {
      return false;
    }
    if (a.length != b.length) {
      return false;
    }
    if (a == b) {
      return true;
    }
    for (int i = 0; i < a.length; i++) {
      if (a[i] != b[i]) {
        return false;
      }
    }
    return true;
  }

  public static boolean equals(Object a[], Object b[]) {
    return true;
  }
}